
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>简单计算器</title>
    <link rel="stylesheet" href="../css/jsq.css">
</head>
<body>
    <div class="jsq">
        <input type="text" id="screen" disabled>
        <button onclick="backspace()">⌫</button>
        <button onclick="calculate('*')">x</button>
        <button onclick="clearScreen()">C</button>
        <button onclick="calculate('/')">÷</button>
        <button onclick="calculate('-')">-</button>
        <button onclick="calculate('+')">+</button>
        <button onclick="appendToScreen('7')">7</button>
        <button onclick="appendToScreen('8')">8</button>
        <button onclick="appendToScreen('9')">9</button>
        <button onclick="appendToScreen('4')">4</button>
        <button onclick="appendToScreen('5')">5</button>
        <button onclick="appendToScreen('6')">6</button>
        <button onclick="appendToScreen('1')">1</button>
        <button onclick="appendToScreen('2')">2</button>
        <button onclick="appendToScreen('3')">3</button>
        <button onclick="appendToScreen('0')">0</button>
        <button onclick="appendToScreen('.')">.</button>
        <button onclick="equals()">=</button>
    </div>
    <script src="../js/jsq.js"></script>
</body>
</html>